package com.dg11185.nearshop.net.request;

import com.dg11185.libs.network.http.client.HttpRequest;
import com.dg11185.libs.utils.MD5.MD5Utils;
import com.dg11185.nearshop.app.Constants;
import com.dg11185.nearshop.net.response.GetProvinceListResponse;



/** 
 * @author : daibo 
 * @version : 2014-5-15 下午9:21:56 
 * @see :
 */
public class GetProvinceListRequest extends HttpRequest<GetProvinceListResponse>{

    public GetProvinceListRequest() {
        super(Constants.ADDRESS, Constants.getProvinceList);
        System.out.println(MD5Utils.getMD5Str(getParams(), Constants.MD5_key));
        addParam("chshToken", Constants.TOKEN);
        addParam("chshSign", MD5Utils.getMD5Str(getParams(), Constants.MD5_key));
    }

    @Override
    protected GetProvinceListResponse parseJson(String response) throws Exception {

        GetProvinceListResponse r = new GetProvinceListResponse();
        r.parseJson(response);
        return r;
    }

}
